﻿<ul class="nav navbar-nav navbar-right">
    <li class="dropdown">
        @if (Request.IsAuthenticated)
        {
            <a class="dropdown-toggle" role="button" data-toggle="dropdown" href="#">@User.Identity.Name<span class="caret"></span></a>

            <ul id="g-account-menu" class="dropdown-menu" role="menu">
                <li>@Html.ActionLink("Log Off", "LogOff", "Account")</li>
                <li>@Html.ActionLink("Change Password", "ChangePassword", "Account")</li>
                <li>
                    @*@Ajax.ActionLink("Change Password", "ChangePass", "Account", null,
                                                    new AjaxOptions
                                                    {
                                                        HttpMethod = "POST",
                                                        InsertionMode = InsertionMode.Replace,
                                                        UpdateTargetId = "body"
                                                    },
                                                    new { }
                                                )*@

                </li>
            </ul>
        }
        else
        {
        <li>@Html.ActionLink("Log in", "Login", "Account")</li>
        <li>@Html.ActionLink("Register", "register", "Account")</li>
        }
    </li>
</ul>
